package com.aop;

import org.springframework.stereotype.Service;

@Service
@NPECatch
public class MyService {

    public void someMethod() {
        String str = null;
        System.out.println(str.length());
    }

    @NPECatch
    public void anotherMethod() {
        String str = null;
        System.out.println(str.length());
    }
}
